Followup to r56514 r56174 empty strings are not NULL
authorOverlordQ <overlordq@users.mediawiki.org>
Sat, 26 Dec 2009 23:15:03 +0000 (23:15 +0000)
committerOverlordQ <overlordq@users.mediawiki.org>
Sat, 26 Dec 2009 23:15:03 +0000 (23:15 +0000)
includes/Xml.php

index 56a8adc..90cd1d9 100644 (file)
@@ -43,7 +43,7 @@ class Xml {
         */
        public static function expandAttributes( $attribs ) {
                $out = '';
-               if( is_null( $attribs ) ) {
+               if( empty( $attribs ) ) {
                        return null;
                } elseif( is_array( $attribs ) ) {
                        foreach( $attribs as $name => $val )